﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.IO;
using System.Net;
using System.Text;

namespace Mandy_Utility
{
    public static class JsonHelper
    {
        public static string ToJsonString(this object Self)
        {
            return JsonConvert.SerializeObject(Self);
        }
        public static T ToJsonObject<T>(this string Self)
        {
            return JsonConvert.DeserializeObject<T>(Self);
        }
    }
}
